NevronOpenVision
Nevron.Nov Namespace / NPromise<TResult> Class / ThenPromise Method / ThenPromise<TPromiseResult>(FunctionResult<TPromiseResult,TResult>,Function<Exception>) Method
ThenPromise<TPromiseResult>(FunctionResult<TPromiseResult,TResult>,Function<Exception>) Method
Adds succeeded and failed handlers for this promise and returns a new promise, which is fulfilled when this promise is fulfilled.
Syntax
public NPromise<TPromiseResult> ThenPromise<TPromiseResult>( 
   Nevron.Nov.FunctionResult<TPromiseResult,TResult> fulfilledHandler,
   Nevron.Nov.Function<Exception> rejectedHandler
)

Parameters

fulfilledHandler
rejectedHandler

Type Parameters

TPromiseResult
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also